package com.example.biketask.controller;

import com.example.biketask.pojo.dto.DataChild;
import com.example.biketask.pojo.dto.DataChildTwo;
import com.example.biketask.pojo.dto.JsonToOne;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class BigdataController {


    //private JsonToOne jsonToOne;

    @GetMapping(value = "/json")
    public String method1() {

        return "{\"state\":1000,\"msg\":\"OK\",\"data\":[{\"name\":\"E 6 St & Avenue B\",\"value\":[{\"name\":\"Cooper Square & Astor Pl\",\"lat\":40.72951496,\"mc\":\"member\",\"count\":80},{\"name\":\"E 1 St & 1 Ave\",\"lat\":40.72335598,\"mc\":\"member\",\"count\":74},{\"name\":\"Lafayette St & E 8 St\",\"lat\":40.73020661,\"mc\":\"member\",\"count\":68},{\"name\":\"E 6 St & Avenue B\",\"lat\":40.72453734,\"mc\":\"member\",\"count\":64},{\"name\":\"E 13 St & Avenue A\",\"lat\":40.72966729,\"mc\":\"member\",\"count\":58}]},{\"name\":\"1 Ave & E 16 St\",\"value\":[{\"name\":\"E 27 St & 1 Ave\",\"lat\":40.739445,\"mc\":\"member\",\"count\":134},{\"name\":\"1 Ave & E 18 St\",\"lat\":40.73381219,\"mc\":\"member\",\"count\":82},{\"name\":\"1 Ave & E 30 St\",\"lat\":40.74144387,\"mc\":\"member\",\"count\":77},{\"name\":\"E 23 St & 1 Ave\",\"lat\":40.736502,\"mc\":\"member\",\"count\":70},{\"name\":\"E 33 St & 1 Ave\",\"lat\":40.74322681,\"mc\":\"member\",\"count\":70}]},{\"name\":\"E 13 St & Avenue A\",\"value\":[{\"name\":\"Lafayette St & E 8 St\",\"lat\":40.73020661,\"mc\":\"member\",\"count\":87},{\"name\":\"E 13 St & Avenue A\",\"lat\":40.72966729,\"mc\":\"member\",\"count\":56},{\"name\":\"Broadway & E 14 St\",\"lat\":40.73454567,\"mc\":\"member\",\"count\":51},{\"name\":\"University Pl & E 14 St\",\"lat\":40.734814,\"mc\":\"member\",\"count\":46},{\"name\":\"E 7 St & Avenue A\",\"lat\":40.72621788,\"mc\":\"member\",\"count\":44}]},{\"name\":\"8 Ave & W 33 St\",\"value\":[{\"name\":\"8 Ave & W 33 St\",\"lat\":40.751551,\"mc\":\"member\",\"count\":63},{\"name\":\"W 35 St & Dyer Ave\",\"lat\":40.75469175,\"mc\":\"member\",\"count\":47},{\"name\":\"11 Ave & W 41 St\",\"lat\":40.76030096,\"mc\":\"member\",\"count\":47},{\"name\":\"W 34 St & 11 Ave\",\"lat\":40.75594159,\"mc\":\"member\",\"count\":38},{\"name\":\"W 54 St & 11 Ave\",\"lat\":40.768333,\"mc\":\"member\",\"count\":38}]},{\"name\":\"W 21 St & 6 Ave\",\"value\":[{\"name\":\"9 Ave & W 22 St\",\"lat\":40.7454973,\"mc\":\"member\",\"count\":83},{\"name\":\"W 21 St & 6 Ave\",\"lat\":40.74173969,\"mc\":\"member\",\"count\":52},{\"name\":\"W 20 St & 10 Ave\",\"lat\":40.745686,\"mc\":\"member\",\"count\":49},{\"name\":\"10 Ave & W 28 St\",\"lat\":40.75066386,\"mc\":\"member\",\"count\":47},{\"name\":\"W 24 St & 7 Ave\",\"lat\":40.74487634,\"mc\":\"member\",\"count\":43}]},{\"name\":\"9 Ave & W 22 St\",\"value\":[{\"name\":\"9 Ave & W 22 St\",\"lat\":40.7454973,\"mc\":\"member\",\"count\":70},{\"name\":\"Greenwich Ave & 8 Ave\",\"lat\":40.73901691,\"mc\":\"member\",\"count\":65},{\"name\":\"W 21 St & 6 Ave\",\"lat\":40.74173969,\"mc\":\"member\",\"count\":53},{\"name\":\"9 Ave & W 18 St\",\"lat\":40.74317449,\"mc\":\"member\",\"count\":52},{\"name\":\"Broadway & E 21 St\",\"lat\":40.73988841,\"mc\":\"member\",\"count\":51}]},{\"name\":\"E 20 St & 2 Ave\",\"value\":[{\"name\":\"E 17 St & Broadway\",\"lat\":40.73704984,\"mc\":\"member\",\"count\":60},{\"name\":\"Broadway & E 21 St\",\"lat\":40.73988841,\"mc\":\"member\",\"count\":53},{\"name\":\"E 15 St & 3 Ave\",\"lat\":40.734232,\"mc\":\"member\",\"count\":52},{\"name\":\"Lafayette St & E 8 St\",\"lat\":40.73020661,\"mc\":\"member\",\"count\":42},{\"name\":\"E 20 St & 2 Ave\",\"lat\":40.73587678,\"mc\":\"member\",\"count\":38}]},{\"name\":\"1 Ave & E 68 St\",\"value\":[{\"name\":\"E 68 St & 3 Ave\",\"lat\":40.7671284,\"mc\":\"member\",\"count\":221},{\"name\":\"1 Ave & E 68 St\",\"lat\":40.76500525,\"mc\":\"member\",\"count\":119},{\"name\":\"3 Ave & E 71 St\",\"lat\":40.76873687,\"mc\":\"member\",\"count\":88},{\"name\":\"1 Ave & E 78 St\",\"lat\":40.77140426,\"mc\":\"member\",\"count\":56},{\"name\":\"E 63 St & 3 Ave\",\"lat\":40.763954,\"mc\":\"member\",\"count\":51}]},{\"name\":\"8 Ave & W 31 St\",\"value\":[{\"name\":\"E 58 St & 3 Ave\",\"lat\":40.76095756,\"mc\":\"member\",\"count\":63},{\"name\":\"8 Ave & W 31 St\",\"lat\":40.75058535,\"mc\":\"member\",\"count\":62},{\"name\":\"E 20 St & 2 Ave\",\"lat\":40.73587678,\"mc\":\"member\",\"count\":56},{\"name\":\"Grand Army Plaza & Central Park S\",\"lat\":40.7643971,\"mc\":\"member\",\"count\":55},{\"name\":\"W 20 St & 10 Ave\",\"lat\":40.745686,\"mc\":\"member\",\"count\":51}]},{\"name\":\"E 33 St & 1 Ave\",\"value\":[{\"name\":\"E 32 St & Park Ave\",\"lat\":40.7457121,\"mc\":\"member\",\"count\":129},{\"name\":\"E 33 St & 1 Ave\",\"lat\":40.74322681,\"mc\":\"member\",\"count\":93},{\"name\":\"E 20 St & 2 Ave\",\"lat\":40.73587678,\"mc\":\"member\",\"count\":71},{\"name\":\"W 33 St & 7 Ave\",\"lat\":40.75019995,\"mc\":\"member\",\"count\":55},{\"name\":\"E 39 St & 2 Ave\",\"lat\":40.74803319,\"mc\":\"member\",\"count\":48}]}]}";

    }


}
